/*
* @Author: fangshuqin
* @Date:   2018-05-07 14:23:52
* @Last Modified by:   ZHELIHAO\fangshuqin
* @Last Modified time: 2018-05-09 18:57:34
*/

{
    let EVENT_CLICK = Laya.Event.CLICK;

    
    class Header extends ui.Role.HeaderUI {
        constructor () {
            super();
            
            this.goBackCallBack = null;
            this.init();

        }

        init () {
            this.initEvent();
        }

        setBack (callback) {

        }

        initEvent(){
            this.btn_back.on(EVENT_CLICK,this, ()=>{
                
                this.goBackCallBack && this.goBackCallBack();
            })

            this.btn_close.on(EVENT_CLICK,this, ()=>{
                this.goBackCallBack && this.goBackCallBack();
                // Sail.director.runScene(new Scene.Hall);
            })
        }



    }

    Sail.class(Header, "Com.Role.Header");
}